import re

with open('meiju2.html', 'r', encoding='utf-8') as f:
    html = re.sub('\n', '', f.read())
    print(html)
    title_pattern = '<div class="threadlist_title pull_left j_th_tit ">.*?<a.*?>(.*?)</a>'
    title_s = re.findall(title_pattern,html)
    for title in title_s:
        print(title)